package eerbaar.internal.body;

import eerbaar.body.IBrain;
import eerbaar.memory.IMemory;
import eerbaar.memory.MemoryFactory;

public class Brain implements IBrain {

    private IMemory memory;

    public Brain() {
        this.memory = MemoryFactory.create();
    }

    public Brain(IMemory memory) {
        this.memory = memory;
    }

    @Override
    public IMemory getMemory() {
        return this.memory;
    }

    @Override
    public void setMemory(IMemory memory) {
        this.memory = memory;
    }

    @Override
    public String toString() {
        return this.memory.toString();
    }

}
